package com.loong.news.common.forehead.param;

import com.loong.common.validator.group.CommonInsert;
import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class NewsCommentParam {
    /**
     * id
     */
    private Long id;
    /**
     * 新闻id
     */
    @NotNull(message = "新增时新闻id不能为空",groups = {CommonInsert.class})
    private Long newsId;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 评论时间
     */
    @NotNull(message = "新增时评论时间不能为空",groups = {CommonInsert.class})
    private Date commentTime;
    /**
     * 点赞数
     */
    private Long likeNum;
    /**
     * 举报数
     */
    private Long unlikeNum;
    /**
     * 父评论id
     */
    private Long parentId;
    /**
     * 评论内容
     */
    @NotBlank(message = "新增时评论内容不能为空",groups = {CommonInsert.class})
    private String commentContent;
    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date lastUpdateTime;

}